import Vue from 'vue'
import Router from 'vue-router'
import index from '../components/index'
import helloWord from '../components/HelloWorld'

Vue.use(Router)

const routers =
  [
    {
      path: '/',
      name: 'HelloWorld',
      component: helloWord
    },
    {
      path: '/index',
      name: 'index',
      component: index
    }
  ]
export default routers
